<div class="row-fluid">
<div class="span4">
<h2>Task Groups</h2>
</div>
<div class="span3 pull-right">
<span class=""><i class="icon-plus"></i> <a href="<?= site_url('user/tasks/default_taskgroup');?>">Create Default Task Group</a></span>
</div>
</div>
<table width="100%" id="example" class="table">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<?php foreach($default_taskgroups as $default_taskgroup){?>
<tr>
<td><?= $default_taskgroup->name?></td>
<td><?= $default_taskgroup->desc?></td>
</tr>
<?php }?>
<?php foreach($custom_taskgroups as $custom_taskgroup){?>
<tr>
<td><?= $custom_taskgroup->name?></td>
<td><?= $custom_taskgroup->desc?></td>
</tr>
<?php }?>
</table>
<hr />
<h3>Create Custom Task</h3>
<?=form_open('user/tasks/create_custom_taskgroup'.'/'.$project_id.'/'.$milestone_id)?>
<table width="100%"> 
  <tr>
    <td><span class="text-error">* </span>Name</td>
    <td><input type="text" name="name" value="<?=set_value('name')?>" /></td>
    <td class="text-error"><?= form_error('name')?></td>
  </tr>
  <tr>
    <td><span class="text-error">* </span>Description</td>
    <td><textarea name="desc"><?=set_value('desc')?></textarea></td>
    <td class="text-error"><?= form_error('desc')?></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td><input type="submit" class="btn btn-info" value="Create custom taskgroups" /></td>
    <td></td>
  </tr>
</table>

</form>
